Tidyverse world: 1) workflow: 2) Rstudio: 3) importing data: 4) manipulating data
For this workshop, we will you an example dataset to go through the whole workflow process.
You can find a variety of cheatsheets at https://posit.co/resources/cheatsheets/
quirky things about R: factors vs character, NAs,
tibble is data.frame v2.0
lubridate fixed date quirks
Key functions
Tips and tricks
NAs - defining
rename columns
reading in more rows to get column type correct
setup excel file to have NA
readr::read_csv()
readr::read_table()
SEtting your column types
After setting up the folder structure for your project, you need to add your data. Here, you will download the data/ directory using link below:
After the zip file downloads, unzip and drag the data/ folder to your Rproject folder.
XXXX data/raw, data/rds, data/spatial XXXX
knitr::include_graphics("lubridate.pdf")
knitr::include_graphics(“dplyr.pdf”)
Note: joins = merges (synonyms)
knitr::include_graphics("lubridate.pdf")
knitr::include_graphics(“tidyr.pdf”)
knitr::include_graphics("lubridate.pdf")
knitr::include_graphics(“stringr.pdf”)
knitr::include_graphics("lubridate.pdf")
At the end of the import and clean stage, I save the dataset as a